package com.atguigu.gulimall.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SearchParam {

    public String keyword;//页面传递过来的全文匹配关键字

    public Long catalog3Id;//三级分类id

    /**
     * sort=saleCount_asc/desc
     * sort=skuPrice_asc/desc
     * sort=hotScore_asc/desc
     */
    public String sort;//排序条件

    /**
     * hasStock:0/1
     * skuPrice 区间：1_500/_500/500_
     * brandId:1
     * catalogId=225
     * attrs:2_5寸:6寸
     */
    public Integer hasStock;//是否只显示有货
    public String skuPrice;//价格区间查询
    public List<Long> brandId;//按照品牌进行查询，可以多选
    public List<String> attrs;//按照属性进行筛选
    public Integer pageNum = 1;//页码

    private String _queryString;//原生的所有查询条件
}
